<?php defined('RUN_KATANA') or die('Restricted access'); ?>
<?php if(defined('AJAX_RUN')): ?>
<?php 
if(($_REQUEST['report'] == 'orders') || ($_REQUEST['report'] == ''))
{ require('forms/orders-data.php'); }
if($_REQUEST['report'] == 'products')
{ require('forms/order-items-data.php'); }
if($_REQUEST['report'] == 'production')
{ require('forms/order-items-production-data.php'); }
if($_REQUEST['report'] == 'zones')
{ require('forms/zones-data.php'); }
if($_REQUEST['report'] == 'response')
{ require('forms/questions-data.php'); }
?>
<?php else: ?>
<input type="hidden" name="action" value="statistics" />
<input type="hidden" name="report" value="<?php echo $_REQUEST['report']; ?>" />
<div class="tabs" style="height:100%;">
	<ul>
    	<li><a href="#sale" style="font-size:0.9em;"><?php echo ucfirst($txt->getWord('sale').' '.$txt->getWord($_REQUEST['report'])); ?></a></li>
	</ul>
	<div id="sale">
		<?php 
		if(($_REQUEST['report'] == 'orders') || ($_REQUEST['report'] == ''))
		{ require('forms/orders-list.php'); }
		if($_REQUEST['report'] == 'products')
		{ require('forms/order-items-list.php'); }
		if($_REQUEST['report'] == 'production')
		{ require('forms/order-items-production-list.php'); }
		if($_REQUEST['report'] == 'zones')
		{ require('forms/zones-list.php'); }
		if($_REQUEST['report'] == 'response')
		{ require('forms/questions-list.php'); }
		?>
	</div>
</div>
<?php endif; ?>